package cn.edu.xhu.library_management.book.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 预约表
 * @TableName lm_reservation
 */
@TableName(value ="lm_reservation")
@Data
public class LmReservation implements Serializable {
    /**
     * 预约表Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户Id
     */
    @TableField(value = "user_account")
    private String userAccount;

    /**
     * 用户类型 1 学生 2 教师 3 校外用户
     */
    @TableField(value = "user_type")
    private Integer userType;

    /**
     * 图书id
     */
    @TableField(value = "bo_id")
    private Integer boId;

    /**
     * 删除标识(0 删除  1 未删除)
     */
    @TableField(value = "re_del_flag")
    @TableLogic
    private String reDelFlag;

    /**
     * 创建时间
     */
    @TableField(value = "re_creat_time",fill = FieldFill.INSERT)
    private Date creatTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}